package com.xuecheng.order.job;

import cn.hutool.core.date.DateUtil;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

// 普通java类
@Component
public class QuickJob {


    // 指定时间规则
    // @Scheduled(fixedDelay = 5000)
    // @Scheduled(cron = "0/5 * * * * ?")
    // 被定时任务控制方法：public void  xxxx(){}
    public void showTime(){
        System.out.println(DateUtil.now());
    }
}
